package com.humi.partner.front.model;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.baomidou.mybatisplus.annotation.Version;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 
 * @author Code V1.0
 * @date 1,564,711,618,285
 *
 */

@Data
public class BaseEntity implements Serializable {

	private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "主键", position = 1000)
	protected String id;

	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "创建时间", position = 1001, example = "2019-08-14 08:22:00")
	protected Date createTime;

	@ApiModelProperty(value = "创建人ID", position = 1002)
	protected String createBy;

	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "修改时间", position = 1003, example = "2019-08-14 08:22:00")
	protected Date updateTime;

	@ApiModelProperty(value = "修改人ID", position = 1004)
	protected String updateBy;

	@JsonIgnore
	@Version
	@ApiModelProperty(value = "版本号", position = 1005)
	protected Long version;

	@JsonIgnore
	@ApiModelProperty(value = "有效标示, 0:否; 1:是(默认)", position = 1006)
	protected Integer valid;
}